<?php session_start();
if (!isset($_SESSION["txt_login"]))
{ print "<script type = 'text/javascript'> location.href = 'index.php'</script>"; exit();}

include "../conexao.php";
$id_usuario   = $_GET["id_usuario"];
$acao       = $_GET["acao"];

$maximo     = $_GET["maximo"];
$pagina     = $_GET["pagina"];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="estilo_admin.css" rel="stylesheet" type="text/css" />
<title>Untitled Document</title></head>

<body><?php 
$sql = mysql_query("SELECT * FROM usuario WHERE id_usuario='$id_usuario'");
$linha=mysql_fetch_array($sql);

?>
<table width="100%" border="0">
  <tr>
    <td><form action="op_lstusuariosadmin.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
      <table width="100%" border="0">
        <tr>
          <td width="10%"  class="meio"><strong>Nome</strong></td>
          <td colspan="2"  class="meio"><label>
            <input name="nome" type="text" id="nome" value="<?php echo $linha["Nome"]; ?>" size="80" />
          </label></td>
          <td width="13%">&nbsp;</td>
        </tr>
        <tr>
          <td  class="meio"><strong>Email</strong></td>
          <td colspan="2"  class="meio"><label>
            <input name="email" type="text" id="email" value="<?php echo $linha["email"]; ?>" size="80" />
          </label></td>
          <td>&nbsp;</td>
        </tr>
       
        <tr>
          <td class="meio"><strong>Login</strong></td>
          <td colspan="2" class="meio"><input name="login" type="text" id="login" value="<?php echo $linha["login"]; ?>" size="80" /></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td class="meio"><strong>Senha</strong></td>
          <td colspan="2" class="meio"><input name="senha" type="text" id="senha" value="<?php echo $linha["senha"]; ?>" size="80" /></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td colspan="2"><label>
            <input type="submit" name="button" id="button" value="<?php echo $acao;?>" />
            <input name="acao" type="hidden" id="acao" value="<?php echo $acao?>" />
            <input name="id_usuario" type="hidden" id="id_usuario" value="<?php echo $linha["id_usuario"];?>"/>
            <input name="pagina" type="hidden" id="pagina" value="<?php echo $pagina;?>" />
            <input name="maximo" type="hidden" id="maximo" value="<?php echo $maximo;?>" />
          </label></td>
          <td>&nbsp;</td>
        </tr>
      </table>
        </form>
    </td>
  </tr>
</table>
</body>
</html>
